negotiator.boaframework.opponentmodel
Class HardHeadedFrequencyModel

java.lang.Object
  extended by negotiator.boaframework.OpponentModel
      extended by negotiator.boaframework.opponentmodel.HardHeadedFrequencyModel

public class HardHeadedFrequencyModel
extends OpponentModel

BOA framework implementation of the HardHeaded Frequecy Model. My main contribution to this model is that I fixed a bug in the mainbranch which resulted in an equal preference of each bid in the ANAC 2011 competition. Effectively, the corrupt model resulted in the offering of a random bid in the ANAC 2011. Default: learning coef l = 0.2; learnValueAddition v = 1.0 Adapted by Mark Hendrikx to be compatible with the BOA framework. Tim Baarslag, Koen Hindriks, Mark Hendrikx, Alex Dirkzwager and Catholijn M. Jonker. Decoupling Negotiating Agents to Explore the Space of Negotiation Strategies

Author:
Mark Hendrikx

Field Summary
 
Fields inherited from class negotiator.boaframework.OpponentModel
negotiationSession, opponentUtilitySpace
 
Constructor Summary
HardHeadedFrequencyModel()
           
 
Method Summary
 double getBidEvaluation(Bid bid)
          Determines the utility of a bid according to the preference profile.
 java.lang.String getName()
           
 void init(NegotiationSession negotiationSession, java.util.HashMap<java.lang.String,java.lang.Double> parameters)
          Initializes the utility space of the opponent such that all value issue weights are equal.
 void updateModel(Bid opponentBid, double time)
          Updates the opponent model given a bid.
 
Methods inherited from class negotiator.boaframework.OpponentModel
cleanUp, endSession, getIssueWeights, getOpponentUtilitySpace, getWeight, init, isCleared, loadData, setOpponentUtilitySpace, setOpponentUtilitySpace, storeData, updateModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HardHeadedFrequencyModel

public HardHeadedFrequencyModel()
Method Detail

init

public void init(NegotiationSession negotiationSession,
                 java.util.HashMap<java.lang.String,java.lang.Double> parameters)
          throws java.lang.Exception
Initializes the utility space of the opponent such that all value issue weights are equal.

Overrides:
init in class OpponentModel
Parameters:
negotiationSession - reference to the state of the negotiation
Throws:
java.lang.Exception

updateModel

public void updateModel(Bid opponentBid,
                        double time)
Updates the opponent model given a bid.

Specified by:
updateModel in class OpponentModel
Parameters:
opponentBid - to update the model with.
time - at which the bid was offered.

getBidEvaluation

public double getBidEvaluation(Bid bid)
Description copied from class: OpponentModel
Determines the utility of a bid according to the preference profile.

Overrides:
getBidEvaluation in class OpponentModel
Parameters:
bid - of which the utility is calculated.
Returns:
Utility of the bid

getName

public java.lang.String getName()
Overrides:
getName in class OpponentModel
Returns:
name of the opponent model.